home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Object = "{3E7AEF75-EEC0-11D2-8B43-000000000000}#2.0#0"; "PCMClient.ocx"
- Begin VB.Form client
- Caption = "Sample Client"
- ClientHeight = 3840
- ClientLeft = 60
- ClientTop = 345
- ClientWidth = 4680
- LinkTopic = "Form1"
- ScaleHeight = 3840
- ScaleWidth = 4680
- StartUpPosition = 3 'Windows Default
- Begin VB.TextBox Text4
- Height = 285
- Left = 3120
- TabIndex = 4
- Text = "1001"
- Top = 2640
- Width = 1095
- End
- Begin VB.TextBox Text3
- Height = 285
- Left = 720
- TabIndex = 3
- Top = 2640
- Width = 1935
- End
- Begin PCMClient.PCM_Client PCM_Client1
- Left = 120
- Top = 120
- _ExtentX = 1085
- _ExtentY = 1085
- End
- Begin VB.TextBox Text2
- Height = 285
- Left = 120
- MultiLine = -1 'True
- TabIndex = 2
- Top = 3360
- Width = 3135
- End
- Begin VB.TextBox Text1
- Height = 2415
- Left = 0
- MultiLine = -1 'True
- TabIndex = 1
- Top = 0
- Width = 4695
- End
- Begin VB.CommandButton Command1
- Caption = "Connect"
- Height = 495
- Left = 3360
- TabIndex = 0
- Top = 3120
- Width = 1215
- End
- Begin VB.Label Label3
- Caption = "Message:"
- Height = 255
- Left = 120
- TabIndex = 7
- Top = 3120
- Width = 2535
- End
- Begin VB.Label Label2
- Caption = "#"
- Height = 255
- Left = 2880
- TabIndex = 6
- Top = 2640
- Width = 375
- End
- Begin VB.Label Label1
- Caption = "Name:"
- Height = 255
- Left = 120
- TabIndex = 5
- Top = 2640
- Width = 1215
- End
- Attribute VB_Name = "client"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- ' this sample project will show you
- ' how to use the Client to make a real
- ' time chat room
- ' any one who logs in to the server sample
- ' project can chat
- Private Sub Command1_Click()
- PCM_Client1.HostName = Text3.Text
- PCM_Client1.PortNum = Text4.Text
- PCM_Client1.Connect
- End Sub
- Private Sub Form_Load()
- End Sub
- Private Sub PCM_Client1_DataArrival()
- Text1.Text = PCM_Client1.Data
- End Sub
- Private Sub Text2_Change()
- PCM_Client1.Data = Text2.Text
- PCM_Client1.SendData
- End Sub
-